﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Lian.yiban
{
    /// <summary>
    /// shang 的摘要说明
    /// </summary>
    public class shang : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            int y = int.Parse(context.Request.QueryString["a2"] ?? "0");
            if (y<=0) {
                context.Response.StatusCode = 400;
                context.Response.End();
                return;
            }
            int y2 =(int) context.Request.InputStream?.Length;
            if (y2 <= 0)
            {
                context.Response.StatusCode = 400;
                context.Response.End();
                return;
            }
            byte[] y3 = new byte[context.Request.InputStream.Length];
            context.Request.InputStream.Seek(0, System.IO.SeekOrigin.Begin);
            context.Request.InputStream.Read(y3, 0, y3.Length);
            //using System.Text;  Encoding
            string y4 = Encoding.Default.GetString(y3);
            if (y4?.Length == y) { 
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}